<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: fsm_foe.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fsm__foe_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">fsm_foe.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fsm__foe_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  $Id: fsm_foe.h,v 9cdd7669dc0b 2013/01/10 16:36:41 fp $</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Copyright (C) 2008       Olav Zarges, imc Messsysteme GmbH</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *                2009-2012  Florian Pose &lt;fp@igh-essen.com&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *  This file is part of the IgH EtherCAT Master.</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  modify it under the terms of the GNU General Public License version 2, as</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *  published by the Free Software Foundation.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  The IgH EtherCAT Master is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *  Public License for more details.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *  You should have received a copy of the GNU General Public License along</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  with the IgH EtherCAT Master; if not, write to the Free Software</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *  ---</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  The license mentioned above concerns the source code only. Using the</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  EtherCAT technology and brand is only permitted in compliance with the</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *  industrial property and similar rights of Beckhoff Automation GmbH.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> *****************************************************************************/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifndef __EC_FSM_FOE_H__</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#define __EC_FSM_FOE_H__</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="globals_8h.html">globals.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;../include/ecrt.h&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="datagram_8h.html">datagram.h</a>&quot;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="slave_8h.html">slave.h</a>&quot;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="foe__request_8h.html">foe_request.h</a>&quot;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="fsm__foe_8h.html#a67d256ed8586be0abb5c87691ad840f5">   49</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structec__fsm__foe.html">ec_fsm_foe</a> <a class="code" href="structec__fsm__foe.html">ec_fsm_foe_t</a>; </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html">   53</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structec__fsm__foe.html">ec_fsm_foe</a> {</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#ae4d76e0ce8fa63d0dcd8b843933a49af">   54</a></span>&#160;    <a class="code" href="structec__slave.html">ec_slave_t</a> *<a class="code" href="structec__fsm__foe.html#ae4d76e0ce8fa63d0dcd8b843933a49af">slave</a>; </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a265053a6c277b9bf66c2a28489385d13">   55</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structec__fsm__foe.html#a265053a6c277b9bf66c2a28489385d13">retries</a>; </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#afb4f3be7845e6bd7c405f4e1c3908d45">   57</a></span>&#160;    void (*<a class="code" href="structec__fsm__foe.html#afb4f3be7845e6bd7c405f4e1c3908d45">state</a>)(<a class="code" href="structec__fsm__foe.html">ec_fsm_foe_t</a> *, <a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *); </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a19c8a77b4f92a3813f23262c3c89dbfc">   58</a></span>&#160;    <a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *<a class="code" href="structec__fsm__foe.html#a19c8a77b4f92a3813f23262c3c89dbfc">datagram</a>; </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a42f6c78ac58392cab6a186e5dd43a992">   59</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structec__fsm__foe.html#a42f6c78ac58392cab6a186e5dd43a992">jiffies_start</a>; </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a14293bb60b8829e96d5463d412dff4e0">   60</a></span>&#160;    uint8_t <a class="code" href="structec__fsm__foe.html#a14293bb60b8829e96d5463d412dff4e0">subindex</a>; </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a000c08fd63b07a083d61a781b68529ee">   61</a></span>&#160;    <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *<a class="code" href="structec__fsm__foe.html#a000c08fd63b07a083d61a781b68529ee">request</a>; </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#ae3c3f1d7a1a8637434f33e1de9fb0c01">   62</a></span>&#160;    uint8_t <a class="code" href="structec__fsm__foe.html#ae3c3f1d7a1a8637434f33e1de9fb0c01">toggle</a>; </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#afe4370bcebc74b342e51dc6ec7c167bd">   64</a></span>&#160;    uint8_t *<a class="code" href="structec__fsm__foe.html#afe4370bcebc74b342e51dc6ec7c167bd">tx_buffer</a>; </div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a25f7057a98c25d28cb089b7268cb415d">   65</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#a25f7057a98c25d28cb089b7268cb415d">tx_buffer_size</a>; </div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#af01ef503eebc97048e1eb67bf5fed201">   66</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#af01ef503eebc97048e1eb67bf5fed201">tx_buffer_offset</a>; </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#aa4137f668dc4033561be82316a117d8e">   67</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#aa4137f668dc4033561be82316a117d8e">tx_last_packet</a>; </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a80ee572b78695906bfe1df61cda4bb4a">   68</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#a80ee572b78695906bfe1df61cda4bb4a">tx_packet_no</a>; </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#afca679da6083ed8c5dd4559941938527">   69</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#afca679da6083ed8c5dd4559941938527">tx_current_size</a>; </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a9861ec153889855a1fa74c1bada87865">   70</a></span>&#160;    uint8_t *<a class="code" href="structec__fsm__foe.html#a9861ec153889855a1fa74c1bada87865">tx_filename</a>; </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a752483ab511b3c67efe4e1e111d6693f">   71</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#a752483ab511b3c67efe4e1e111d6693f">tx_filename_len</a>; </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a2141eab8b9b4821e6714c4873114d93e">   73</a></span>&#160;    uint8_t *<a class="code" href="structec__fsm__foe.html#a2141eab8b9b4821e6714c4873114d93e">rx_buffer</a>; </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#ad44c7d17687802d770d8c455caa2e490">   74</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#ad44c7d17687802d770d8c455caa2e490">rx_buffer_size</a>; </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a92ba79d9ab8dfcb3a57ff98e05450a85">   75</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#a92ba79d9ab8dfcb3a57ff98e05450a85">rx_buffer_offset</a>; </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a6497d12beaa6dba428a4014579a5515f">   76</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#a6497d12beaa6dba428a4014579a5515f">rx_expected_packet_no</a>; </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#a1851f47e360be36fa979e219f36da5d0">   77</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#a1851f47e360be36fa979e219f36da5d0">rx_last_packet</a>; </div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#af0315313d092bab948ce47c2114dc870">   78</a></span>&#160;    uint8_t *<a class="code" href="structec__fsm__foe.html#af0315313d092bab948ce47c2114dc870">rx_filename</a>; </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structec__fsm__foe.html#ab355fc6657db6b9c8c63fee2ec3a4e91">   79</a></span>&#160;    uint32_t <a class="code" href="structec__fsm__foe.html#ab355fc6657db6b9c8c63fee2ec3a4e91">rx_filename_len</a>; </div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;};</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fsm__foe_8h.html#aeb7f396bcef5efd542597108eb9b1801">ec_fsm_foe_init</a>(<a class="code" href="structec__fsm__foe.html">ec_fsm_foe_t</a> *);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fsm__foe_8h.html#abcbf9ea75475717789189556b74e96c8">ec_fsm_foe_clear</a>(<a class="code" href="structec__fsm__foe.html">ec_fsm_foe_t</a> *);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keywordtype">int</span> <a class="code" href="fsm__foe_8h.html#abf246a9d491ad93d1aa0a4abf71fd275">ec_fsm_foe_exec</a>(<a class="code" href="structec__fsm__foe.html">ec_fsm_foe_t</a> *, <a class="code" href="structec__datagram__t.html">ec_datagram_t</a> *);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keywordtype">int</span> <a class="code" href="fsm__foe_8h.html#aabc5071b20cec133ec15cd8e9c062715">ec_fsm_foe_success</a>(<span class="keyword">const</span> <a class="code" href="structec__fsm__foe.html">ec_fsm_foe_t</a> *);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="keywordtype">void</span> <a class="code" href="fsm__foe_8h.html#ac1a32ebc65651ecf94e5470c0108a1ed">ec_fsm_foe_transfer</a>(<a class="code" href="structec__fsm__foe.html">ec_fsm_foe_t</a> *, <a class="code" href="structec__slave.html">ec_slave_t</a> *, <a class="code" href="structec__foe__request__t.html">ec_foe_request_t</a> *);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">/*****************************************************************************/</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="structec__fsm__foe_html_a9861ec153889855a1fa74c1bada87865"><div class="ttname"><a href="structec__fsm__foe.html#a9861ec153889855a1fa74c1bada87865">ec_fsm_foe::tx_filename</a></div><div class="ttdeci">uint8_t * tx_filename</div><div class="ttdoc">Name of file to transmit. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00070">fsm_foe.h:70</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_ae4d76e0ce8fa63d0dcd8b843933a49af"><div class="ttname"><a href="structec__fsm__foe.html#ae4d76e0ce8fa63d0dcd8b843933a49af">ec_fsm_foe::slave</a></div><div class="ttdeci">ec_slave_t * slave</div><div class="ttdoc">Slave the FSM runs on. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00054">fsm_foe.h:54</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a2141eab8b9b4821e6714c4873114d93e"><div class="ttname"><a href="structec__fsm__foe.html#a2141eab8b9b4821e6714c4873114d93e">ec_fsm_foe::rx_buffer</a></div><div class="ttdeci">uint8_t * rx_buffer</div><div class="ttdoc">Buffer for received data. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00073">fsm_foe.h:73</a></div></div>
<div class="ttc" id="fsm__foe_8h_html_abcbf9ea75475717789189556b74e96c8"><div class="ttname"><a href="fsm__foe_8h.html#abcbf9ea75475717789189556b74e96c8">ec_fsm_foe_clear</a></div><div class="ttdeci">void ec_fsm_foe_clear(ec_fsm_foe_t *)</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8c_source.html#l00119">fsm_foe.c:119</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a80ee572b78695906bfe1df61cda4bb4a"><div class="ttname"><a href="structec__fsm__foe.html#a80ee572b78695906bfe1df61cda4bb4a">ec_fsm_foe::tx_packet_no</a></div><div class="ttdeci">uint32_t tx_packet_no</div><div class="ttdoc">FoE packet number. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00068">fsm_foe.h:68</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a42f6c78ac58392cab6a186e5dd43a992"><div class="ttname"><a href="structec__fsm__foe.html#a42f6c78ac58392cab6a186e5dd43a992">ec_fsm_foe::jiffies_start</a></div><div class="ttdeci">unsigned long jiffies_start</div><div class="ttdoc">FoE timestamp. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00059">fsm_foe.h:59</a></div></div>
<div class="ttc" id="slave_8h_html"><div class="ttname"><a href="slave_8h.html">slave.h</a></div><div class="ttdoc">EtherCAT slave structure. </div></div>
<div class="ttc" id="structec__datagram__t_html"><div class="ttname"><a href="structec__datagram__t.html">ec_datagram_t</a></div><div class="ttdoc">EtherCAT datagram. </div><div class="ttdef"><b>Definition:</b> <a href="datagram_8h_source.html#l00087">datagram.h:87</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_afe4370bcebc74b342e51dc6ec7c167bd"><div class="ttname"><a href="structec__fsm__foe.html#afe4370bcebc74b342e51dc6ec7c167bd">ec_fsm_foe::tx_buffer</a></div><div class="ttdeci">uint8_t * tx_buffer</div><div class="ttdoc">Buffer with data to transmit. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00064">fsm_foe.h:64</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_af01ef503eebc97048e1eb67bf5fed201"><div class="ttname"><a href="structec__fsm__foe.html#af01ef503eebc97048e1eb67bf5fed201">ec_fsm_foe::tx_buffer_offset</a></div><div class="ttdeci">uint32_t tx_buffer_offset</div><div class="ttdoc">Offset of data to tranmit next. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00066">fsm_foe.h:66</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a752483ab511b3c67efe4e1e111d6693f"><div class="ttname"><a href="structec__fsm__foe.html#a752483ab511b3c67efe4e1e111d6693f">ec_fsm_foe::tx_filename_len</a></div><div class="ttdeci">uint32_t tx_filename_len</div><div class="ttdoc">Lenth of transmit file name. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00071">fsm_foe.h:71</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_ab355fc6657db6b9c8c63fee2ec3a4e91"><div class="ttname"><a href="structec__fsm__foe.html#ab355fc6657db6b9c8c63fee2ec3a4e91">ec_fsm_foe::rx_filename_len</a></div><div class="ttdeci">uint32_t rx_filename_len</div><div class="ttdoc">Length of the receive file name. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00079">fsm_foe.h:79</a></div></div>
<div class="ttc" id="fsm__foe_8h_html_abf246a9d491ad93d1aa0a4abf71fd275"><div class="ttname"><a href="fsm__foe_8h.html#abf246a9d491ad93d1aa0a4abf71fd275">ec_fsm_foe_exec</a></div><div class="ttdeci">int ec_fsm_foe_exec(ec_fsm_foe_t *, ec_datagram_t *)</div><div class="ttdoc">Executes the current state of the state machine. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8c_source.html#l00129">fsm_foe.c:129</a></div></div>
<div class="ttc" id="globals_8h_html"><div class="ttname"><a href="globals_8h.html">globals.h</a></div><div class="ttdoc">Global definitions and macros. </div></div>
<div class="ttc" id="structec__slave_html"><div class="ttname"><a href="structec__slave.html">ec_slave</a></div><div class="ttdoc">EtherCAT slave. </div><div class="ttdef"><b>Definition:</b> <a href="slave_8h_source.html#l00176">slave.h:176</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_aa4137f668dc4033561be82316a117d8e"><div class="ttname"><a href="structec__fsm__foe.html#aa4137f668dc4033561be82316a117d8e">ec_fsm_foe::tx_last_packet</a></div><div class="ttdeci">uint32_t tx_last_packet</div><div class="ttdoc">Current packet is last one to send. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00067">fsm_foe.h:67</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a6497d12beaa6dba428a4014579a5515f"><div class="ttname"><a href="structec__fsm__foe.html#a6497d12beaa6dba428a4014579a5515f">ec_fsm_foe::rx_expected_packet_no</a></div><div class="ttdeci">uint32_t rx_expected_packet_no</div><div class="ttdoc">Expected receive packet number. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00076">fsm_foe.h:76</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_ad44c7d17687802d770d8c455caa2e490"><div class="ttname"><a href="structec__fsm__foe.html#ad44c7d17687802d770d8c455caa2e490">ec_fsm_foe::rx_buffer_size</a></div><div class="ttdeci">uint32_t rx_buffer_size</div><div class="ttdoc">Size of receive buffer. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00074">fsm_foe.h:74</a></div></div>
<div class="ttc" id="fsm__foe_8h_html_ac1a32ebc65651ecf94e5470c0108a1ed"><div class="ttname"><a href="fsm__foe_8h.html#ac1a32ebc65651ecf94e5470c0108a1ed">ec_fsm_foe_transfer</a></div><div class="ttdeci">void ec_fsm_foe_transfer(ec_fsm_foe_t *, ec_slave_t *, ec_foe_request_t *)</div><div class="ttdoc">Prepares an FoE transfer. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8c_source.html#l00172">fsm_foe.c:172</a></div></div>
<div class="ttc" id="foe__request_8h_html"><div class="ttname"><a href="foe__request_8h.html">foe_request.h</a></div><div class="ttdoc">EtherCAT FoE request structure. </div></div>
<div class="ttc" id="datagram_8h_html"><div class="ttname"><a href="datagram_8h.html">datagram.h</a></div><div class="ttdoc">EtherCAT datagram structure. </div></div>
<div class="ttc" id="structec__fsm__foe_html_a25f7057a98c25d28cb089b7268cb415d"><div class="ttname"><a href="structec__fsm__foe.html#a25f7057a98c25d28cb089b7268cb415d">ec_fsm_foe::tx_buffer_size</a></div><div class="ttdeci">uint32_t tx_buffer_size</div><div class="ttdoc">Size of data to transmit. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00065">fsm_foe.h:65</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a1851f47e360be36fa979e219f36da5d0"><div class="ttname"><a href="structec__fsm__foe.html#a1851f47e360be36fa979e219f36da5d0">ec_fsm_foe::rx_last_packet</a></div><div class="ttdeci">uint32_t rx_last_packet</div><div class="ttdoc">Current packet is the last to receive. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00077">fsm_foe.h:77</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_ae3c3f1d7a1a8637434f33e1de9fb0c01"><div class="ttname"><a href="structec__fsm__foe.html#ae3c3f1d7a1a8637434f33e1de9fb0c01">ec_fsm_foe::toggle</a></div><div class="ttdeci">uint8_t toggle</div><div class="ttdoc">Toggle bit for segment commands. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00062">fsm_foe.h:62</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a14293bb60b8829e96d5463d412dff4e0"><div class="ttname"><a href="structec__fsm__foe.html#a14293bb60b8829e96d5463d412dff4e0">ec_fsm_foe::subindex</a></div><div class="ttdeci">uint8_t subindex</div><div class="ttdoc">Current subindex. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00060">fsm_foe.h:60</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a265053a6c277b9bf66c2a28489385d13"><div class="ttname"><a href="structec__fsm__foe.html#a265053a6c277b9bf66c2a28489385d13">ec_fsm_foe::retries</a></div><div class="ttdeci">unsigned int retries</div><div class="ttdoc">Retries upon datagram timeout. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00055">fsm_foe.h:55</a></div></div>
<div class="ttc" id="structec__foe__request__t_html"><div class="ttname"><a href="structec__foe__request__t.html">ec_foe_request_t</a></div><div class="ttdoc">FoE request. </div><div class="ttdef"><b>Definition:</b> <a href="foe__request_8h_source.html#l00050">foe_request.h:50</a></div></div>
<div class="ttc" id="fsm__foe_8h_html_aabc5071b20cec133ec15cd8e9c062715"><div class="ttname"><a href="fsm__foe_8h.html#aabc5071b20cec133ec15cd8e9c062715">ec_fsm_foe_success</a></div><div class="ttdeci">int ec_fsm_foe_success(const ec_fsm_foe_t *)</div><div class="ttdoc">Returns, if the state machine terminated with success. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8c_source.html#l00163">fsm_foe.c:163</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a19c8a77b4f92a3813f23262c3c89dbfc"><div class="ttname"><a href="structec__fsm__foe.html#a19c8a77b4f92a3813f23262c3c89dbfc">ec_fsm_foe::datagram</a></div><div class="ttdeci">ec_datagram_t * datagram</div><div class="ttdoc">Datagram used in previous step. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00058">fsm_foe.h:58</a></div></div>
<div class="ttc" id="fsm__foe_8h_html_aeb7f396bcef5efd542597108eb9b1801"><div class="ttname"><a href="fsm__foe_8h.html#aeb7f396bcef5efd542597108eb9b1801">ec_fsm_foe_init</a></div><div class="ttdeci">void ec_fsm_foe_init(ec_fsm_foe_t *)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8c_source.html#l00107">fsm_foe.c:107</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a000c08fd63b07a083d61a781b68529ee"><div class="ttname"><a href="structec__fsm__foe.html#a000c08fd63b07a083d61a781b68529ee">ec_fsm_foe::request</a></div><div class="ttdeci">ec_foe_request_t * request</div><div class="ttdoc">FoE request. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00061">fsm_foe.h:61</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_afb4f3be7845e6bd7c405f4e1c3908d45"><div class="ttname"><a href="structec__fsm__foe.html#afb4f3be7845e6bd7c405f4e1c3908d45">ec_fsm_foe::state</a></div><div class="ttdeci">void(* state)(ec_fsm_foe_t *, ec_datagram_t *)</div><div class="ttdoc">FoE state function. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00057">fsm_foe.h:57</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_af0315313d092bab948ce47c2114dc870"><div class="ttname"><a href="structec__fsm__foe.html#af0315313d092bab948ce47c2114dc870">ec_fsm_foe::rx_filename</a></div><div class="ttdeci">uint8_t * rx_filename</div><div class="ttdoc">Name of the file to receive. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00078">fsm_foe.h:78</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_afca679da6083ed8c5dd4559941938527"><div class="ttname"><a href="structec__fsm__foe.html#afca679da6083ed8c5dd4559941938527">ec_fsm_foe::tx_current_size</a></div><div class="ttdeci">uint32_t tx_current_size</div><div class="ttdoc">Size of current packet to send. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00069">fsm_foe.h:69</a></div></div>
<div class="ttc" id="structec__fsm__foe_html"><div class="ttname"><a href="structec__fsm__foe.html">ec_fsm_foe</a></div><div class="ttdoc">Finite state machines for the CANopen-over-EtherCAT protocol. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00053">fsm_foe.h:53</a></div></div>
<div class="ttc" id="structec__fsm__foe_html_a92ba79d9ab8dfcb3a57ff98e05450a85"><div class="ttname"><a href="structec__fsm__foe.html#a92ba79d9ab8dfcb3a57ff98e05450a85">ec_fsm_foe::rx_buffer_offset</a></div><div class="ttdeci">uint32_t rx_buffer_offset</div><div class="ttdoc">Offset in receive buffer. </div><div class="ttdef"><b>Definition:</b> <a href="fsm__foe_8h_source.html#l00075">fsm_foe.h:75</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="fsm__foe_8h.html">fsm_foe.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
